<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>Action的三种参数注入方式</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  
  <body>
  	
	<form action="${pageContext.request.contextPath}/paramInput/UserAction_1.action" method="post">
		<table border="1px">
			<caption>Action参数注入方式一：登录</caption>
			<tr>
				<td>用户名</td>
				<td><input type="text" name="username"/></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input type="password" name="password"/></td>
			</tr>
			<tr>
				<td><input type="submit" value="提交"/></td>
				<td><input type="reset" value="清空" /></td>
			</tr>			
		</table>
	</form>
	
	<hr/>
	
	<form action="${pageContext.request.contextPath}/paramInput/UserAction_2.action" method="post">
		<table border="1px">
			<caption>Action参数注入方式二：登录</caption>
			<tr>
				<td>用户名</td>
				<td><input type="text" name="user.username"/></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input type="password" name="user.password"/></td>
			</tr>
			<tr>
				<td><input type="submit" value="提交"/></td>
				<td><input type="reset" value="清空" /></td>
			</tr>			
		</table>
	</form>
	
	<hr/>
	
	<form action="${pageContext.request.contextPath}/paramInput/UserAction_3.action" method="post">
		<table border="1px">
			<caption><strong>Action参数注入方式三：注册</strong></caption>
			<tr>
				<td>用户名</td>
				<td><input type="text" name="uservo.username"/></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input type="password" name="uservo.password"/></td>
			</tr>
			<tr>
				<td>确认密码</td>
				<td><input type="password" name="uservo.comfirmingPassword"/></td>
			</tr>
			<tr>
				<td><input type="submit" value="提交"/></td>
				<td><input type="reset" value="清空" /></td>
			</tr>			
		</table>
	</form>
	
	<hr/>
	
	<form action="${pageContext.request.contextPath}/paramInput/UserAction_4.action" method="post">
		<table border="1px">
			<caption>Action参数注入方式四：登录</caption>
			<tr>
				<td>用户名</td>
				<td><input type="text" name="username"/></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input type="password" name="password"/></td>
			</tr>
			<tr>
				<td><input type="submit" value="提交"/></td>
				<td><input type="reset" value="清空" /></td>
			</tr>			
		</table>
	</form>  	
	  	
  </body>
</html>
